{template 'member', 'header'}
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<script language="javascript" type="text/javascript" src="{JS_PATH}content_addtop.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
<script type="text/javascript" src="{JS_PATH}swfupload/swf2ckeditor.js"></script>

<div class="realwrap main">

<div class="tab_area">
					<ul class="tabs">
					<? 
						$shoptype = explode(',',substr(substr($memberinfo[shoptype],1),0,'-1'));
						if($con['goodtype']=='time'){$oneindex=1;}elseif($con['goodtype']=='goods'){$oneindex=2;}else{$oneindex=0;};
						if($shoptype[1]){
						foreach ($shoptype as $s){
					?>
						<li><a href="#">{$s}</a></li>
					<?}}else{?>
						<li><a href="#">编辑产品</li>
					<?}?>
					</ul>
					<div class="panes" style="text-align:center;line-height:40px;">
						<div style="display: none;">
						<form method="post" action="{APP_PATH}index.php?m=member&c=shop&a=edit_product" id="myform" name="myform" enctype="multipart/form-data">
							<table width="100%" cellspacing="0" class="table_form">
								<tr>
									<th width="100">产品名称</th> 
									<td><input name="info[title]" type="text" size="30" value="{$con[title]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">描述</th> 
									<td><input name="info[description]" type="text" size="30" value="{$con[description]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">单价(每晚):</th> 
									<td><input name="info[price]" type="text" size="30" value="{$con[price]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">库存</th> 
									<td><input name="info[stock]" type="text"  size="30" value="{$con[stock]}" class="input-text"></td>
								</tr>
							</table>
							
							<div style="margin:10px auto;width:450px;height:40px" class="clear">
								<input value="day" type="hidden" name="info[goodtype]">
								<input value="{$_GET[id]}" type="hidden" name="info[id]">
								<input value="提交" type="submit" name="dosubmit" class="btn_submit" style="padding:0 5px;float:left;">
								<a href="{APP_PATH}index.php?m=member&c=shop&a=products" class="btn_canel" style="padding:0 5px;float:left;margin-left:20px">取消</a>
							</div>
						</form>
						</div>
						<div style="display: none;">
							<form method="post" action="{APP_PATH}index.php?m=member&c=shop&a=edit_product" id="myform" name="myform" enctype="multipart/form-data">
							<table width="100%" cellspacing="0" class="table_form">
								<tr>
									<th width="100">产品名称</th> 
									<td><input name="info[title]" type="text" size="30" value="{$con[title]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">描述</th> 
									<td><input name="info[description]" type="text" size="30" value="{$con[description]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">价格</th> 
									<td><input name="info[price]" type="text" size="30" value="{$con[price]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">库存</th> 
									<td><input name="info[stock]" type="text"  size="30" value="{$con[stock]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">浮动价格</th> 
									<td><style>
							.price_time {padding:2px;word-wrap: break-word;word-break: break-all;}
							.price_time span{white-space:nowrap;margin:5px 0;display:inline-block;}
							</style>
							<div class="price_time">
							 <span>0点 <input type="text" name="info[time_0]" id="time_0" value="{$con[time_0]}" class="input-text" size="4"></span><span>1点 <input type="text" name="info[time_1]" id="time_1" value="{$con[time_1]}" class="input-text" size="4"></span> <span>2点 <input type="text" name="info[time_2]" id="time_2" value="{$con[time_2]}" class="input-text" size="4"></span>
							 <span>3点 <input type="text" name="info[time_3]" id="time_3" value="{$con[time_3]}" class="input-text" size="4"></span> <span>4点 <input type="text" name="info[time_4]" id="time_4" value="{$con[time_4]}" class="input-text" size="4"></span> <span>5点 <input type="text" name="info[time_5]" id="time_5" value="{$con[time_5]}" class="input-text" size="4"></span> <span>6点 <input type="text" name="info[time_6]" id="time_6" value="{$con[time_6]}" class="input-text" size="4"></span> <span>7点 <input type="text" name="info[time_7]" id="time_7" value="{$con[time_7]}" class="input-text" size="4"></span> <span>8点 <input type="text" name="info[time_8]" id="time_8" value="{$con[time_8]}" class="input-text" size="4"></span> <span>9点 <input type="text" name="info[time_9]" id="time_9" value="{$con[time_9]}" class="input-text" size="4"></span> <span>10点 <input type="text" name="info[time_10]" id="time_10" value="{$con[time_10]}" class="input-text" size="4"></span> <span>11点 <input type="text" name="info[time_11]" id="time_11" value="{$con[time_11]}" class="input-text" size="4"></span> <span>12点 <input type="text" name="info[time_12]" id="time_12" value="{$con[time_12]}" class="input-text" size="4"></span> <span>13点 <input type="text" name="info[time_13]" id="time_13" value="{$con[time_13]}" class="input-text" size="4"></span> <span>14点 <input type="text" name="info[time_14]" id="time_14" value="{$con[time_14]}" class="input-text" size="4"></span> <span>15点 <input type="text" name="info[time_15]" id="time_15" value="{$con[time_15]}" class="input-text" size="4"></span> <span>16点 <input type="text" name="info[time_16]" id="time_16" value="{$con[time_16]}" class="input-text" size="4"></span> <span>17点 <input type="text" name="info[time_17]" id="time_17" value="{$con[time_17]}" class="input-text" size="4"></span> <span>18点 <input type="text" name="info[time_18]" id="time_18" value="{$con[time_18]}" class="input-text" size="4"></span> <span>19点 <input type="text" name="info[time_19]" id="time_19" value="{$con[time_19]}" class="input-text" size="4"></span> <span>20点 <input type="text" name="info[time_20]" id="time_20" value="{$con[time_20]}" class="input-text" size="4"></span> <span>21点 <input type="text" name="info[time_21]" id="time_21" value="{$con[time_21]}" class="input-text" size="4"></span> <span>22点 <input type="text" name="info[time_22]" id="time_22" value="{$con[time_22]}" class="input-text" size="4"></span> <span>23点 <input type="text" name="info[time_23]" id="time_23" value="{$con[time_23]}" class="input-text" size="4"></span>
							<br>
							单位：元 /小时
							</div>  </td>
								</tr>
							</table>
							
							<div style="margin:10px auto;width:450px;height:40px" class="clear">
								<input value="time" type="hidden" name="info[goodtype]">
								<input value="{$_GET[id]}" type="hidden" name="info[id]">
								<input value="提交" type="submit" name="dosubmit" class="btn_submit" style="padding:0 5px;float:left;">
								<a href="{APP_PATH}index.php?m=member&c=shop&a=products" class="btn_canel" style="padding:0 5px;float:left;margin-left:20px">取消</a>
							</div>
						</form>
						</div>
						<div style="display: none;">
							<form method="post" action="{APP_PATH}index.php?m=member&c=shop&a=edit_product" id="myform" name="myform" enctype="multipart/form-data">
							<table width="100%" cellspacing="0" class="table_form">
								<tr>
									<th width="100">产品名称</th> 
									<td><input name="info[title]" type="text" size="30" value="{$con[title]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">图片</th> 
									<td><input type="text" name="info[thumb]" id="thumb" value="{$con[thumb]}" size="50" class="input-text">
									 <? $authkeyimg = upload_key("1,jpg|jpeg|gif|png|bmp,1,,,0");?>
									<input type="button" class="btn_upload" onclick="flashupload('thumb_images', '附件上传','thumb',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,0','content','45','{$authkeyimg}');return false;" value="上传图片">
									</td>
								</tr>
								<tr>
									<th width="100">单价(每件):</th> 
									<td><input name="info[price]" type="text" size="30" value="{$con[price]}" class="input-text"></td>
								</tr>
								<tr>
									<th width="100">库存</th> 
									<td><input name="info[stock]" type="text"  size="30" value="{$con[stock]}" class="input-text"></td>
								</tr>
							</table>
							
							<div style="margin:10px auto;width:450px;height:40px" class="clear">
								<input value="goods" type="hidden" name="info[goodtype]">
								<input value="{$_GET[id]}" type="hidden" name="info[id]">
								<input value="提交" type="submit" name="dosubmit" class="btn_submit" style="padding:0 5px;float:left;">
								<a href="{APP_PATH}index.php?m=member&c=shop&a=products" class="btn_canel" style="padding:0 5px;float:left;margin-left:20px">取消</a>
							</div>
						</form>
						</div>
					</div>
				</div>
				
</div>
				<script>
				$(function() {
					$("ul.tabs").tabs("div.panes > div",{effect: 'slide', initialIndex: {$oneindex}});
				});
				</script>


{template 'member', 'footer'}